/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import dao.MontantCaisseDAO;
import entity.MontantCaisse;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.jboss.weld.context.ejb.Ejb;

@ManagedBean(name="montantcaisseBean")
@SessionScoped
public class MontantCaisseBean {
    
    @Ejb
    MontantCaisseDAO montantCaisseDAO=new MontantCaisseDAO();
    List<MontantCaisse> lists;
    
    
    public MontantCaisseBean() {
    }

    public List<MontantCaisse> getLists() {
        return montantCaisseDAO.findAll();
    }

    public void setLists(List<MontantCaisse> lists) {
        this.lists = lists;
    }
    
}
